home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 7234 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.8 KB  |  48 lines

  1. Path: cc.newcastle.edu.au!outias
  2. From: outias@cc.newcastle.edu.au
  3. Newsgroups: comp.lang.c++
  4. Subject: Help: About VXDs?
  5. Date: 22 Feb 96 19:19:51 +1100
  6. Organization: University of Newcastle, AUSTRALIA
  7. Message-ID: <1996Feb22.191951.1@cc.newcastle.edu.au>
  8. NNTP-Posting-Host: cc.newcastle.edu.au
  9.  
  10. To anybody in the know,
  11.  
  12. I have an Windows application I need to write which communicates 
  13. serially to two external devices.  I have a proprietary DLL which 
  14. has all the functions I need for communications.  
  15.  
  16. My problem is I need to have a precise timing sequence.  One device 
  17. takes about 10ms to obtain a message (its only small).  The other 
  18. device takes about 270ms (its quite large).  I need to get a message 
  19. from both devices before I can do anything with the data so the 
  20. complete cycle is say 300ms.  I need to guarantee that I get data 
  21. from the devices each 300ms cycle without fail.  I can hog the CPU 
  22. and get the data in the time required but the old hold the mouse 
  23. button down on a window title trick kills everything.
  24.  
  25. Windows being the non deterministic operating system that it is 
  26. makes it quite difficult to guarantee anything.  Timers are 
  27. virtually useless.  They do not guarantee anything and are certainly 
  28. erratic when trying to do anything real time.  
  29.  
  30. I thought maybe a VXD device driver may cure my problem but I have 
  31. no knowledge of these whatsover.  My questions are these :
  32.  
  33. Is writing a VXD the way to go?
  34. Is it as daunting a task as it sounds?
  35. If I do write a VXD can I incorporate the DLL calls to control the 
  36. device? 
  37. or do I need to source code for the DLL to build it into the VXD?
  38. Can anyone recommend some books, sample code, FTP sites whatever 
  39. where I can get some info to speed development?
  40.  
  41. Thanks in advance.
  42.  
  43. AJAY
  44.  
  45. PS. Sorry about the bullshit characters but I edit this on a PC and
  46. send it through a VAX account.
  47. 
  48.